﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Entities
{
    /// <summary>
    /// 物品类别设置表
    /// </summary>
    [Table("PSS_ItemCategorys")]
    public class ItemCategory: FullAuditedEntity<Guid>, IMustHaveTenant
    {
        public const int MaxNameLength = 50;
       
        public const int MaxRemarkLegth = 200;
        /// <summary>
        /// 租户ID
        /// </summary>
        public int TenantId { get; set; }
        /// <summary>
        /// 物品类别名称
        /// </summary>
        [Required]
        [MaxLength(MaxNameLength)]
        public virtual string ItemCategoryName { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(MaxRemarkLegth)]
        public virtual string Remark { get; set; }

        public ICollection<ItemDetail> ItemDetails { get; set; }
    }
}
